﻿<%@ Page Title="Telerik Parser" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ReleaseNotesConverter._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Release Notes Tool</h1>
                <h4>You can upload a Teampulse file (in CSV or XML format) and generate the Release Notes.</h4>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h3>Upload TeamPulse file in CSV or XML format:</h3>
	<div id="mainContent">
        <asp:FileUpload ID="FileUpload" runat="server" />
			<br />
			<br />
        <section>
            <asp:Button ID="ButtonConvertCSVToReleaseNotes" runat="server" 
                Text="Convert to Release notes (in XML)" OnClick="ButtonConvertCSVToReleaseNotes_Click"
                 />
        </section>
        <section>
  
			<asp:Button ID="ButtonConvertXmlToReleaseNotes" runat="server" 
				Text="Convert to Release notes (in XML)" 
				OnClick="ButtonConvertXmlToReleaseNotes_Click" />
			&nbsp;
			<asp:Button ID="ButtonConvertXmlToLatestInternalBuild" runat="server" 
				Text="Convert to LIB (in HTML)" 
				OnClick="ButtonConvertXmlToLatestInternalBuild_Click" />
			<br />
			<br />
			<asp:Label ID="LabelFileName" runat="server" Visible="true" Text="" ForeColor="Red"></asp:Label>
        </section>
		
	</div>

	<div id="instructions">
		<h2>Instructions:</h2>
		<ol>
			<li>Go to <a href="http://tpdogfood.telerik.com/">http://tpdogfood.telerik.com/</a></li>
			<li>From the menu bar choose <strong>Planning -> Backlog</strong></li>				
			<li>Choose the following settings from the Filters section
				<ul>
					<li><strong>Filter by Area</strong> - choose the asp controls you want  or choose All</li>
					<li><strong>Filter by Iteration</strong> -  select the specific Iteration/Q/Team or check the whole Project folder</li>
					<li><strong>Filter by Status </strong>- select <strong>Completed Group -> Done</strong></li>
					<li>
						<strong>Filter by Tag</strong> - 						
						select <strong>Minor/Major</strong> depending on whether you want notes for LIB(Service pack)/Q1, Q2, Q3

					</li>
					<li><strong>Filter by Type </strong> - select <strong>Story</strong> and <strong>Bug</strong></li>

				</ul>
			</li>
			<li>
				Open the <strong>Edit Columns</strong> tab and select <strong>Area, Last Modified and Type</strong>
				<img src="Images/Screen-Edit-Columns.png" width="1000" height="550" />
			</li>
			<li>Make sure that the columns are arranged in the following order:
				<table>
					<tr>
						<td  style="border: 1px solid blue">Type</td>
						<td  style="border: 1px solid blue">Name</td>
						<td  style="border: 1px solid blue">Area</td>
						<td  style="border: 1px solid blue">Last Modified</td>
					</tr>
				</table>
			</li>
			<li>
				Filter the data by the <strong>Last Modifed column</strong>  - choose the <strong>Is greater than</strong> filter
				and set the date <strong>1 day after</strong> the previous Latest Internal Build/Release
				<img src="Images/Screen-Sort-By-Date.png" width="1000" height="550" />
			</li>
			<li>Sort the data by the <strong>Area</strong> column in <strong>ascending order</strong> (see the image below) - 
				Switch to the sortable and groupable view of the backlog and then sort by Area </li>
			<li>
				Your final view should look like
				<img src="Images/Screen-Switch-to-Group-View.png" width="1000" height="550" /></li>
			
			<li>Choose <strong>ExportTo -> ExcelML</strong> and save the file (the default filetype is .xml) in a local directory</li>
			<li>Browse the file and click <strong>Convert To Release Notes</strong> or <strong>Convert to Latest Internal Build</strong> button</li>
		</ol>
	</div>
</asp:Content>
